<?php

class Usersession extends CI_Model{

	function __construct()
    	{
        	parent::__construct();
    	}
	
	function putSessionCookie(){
        $this->load->library('configuraiton');
        $expire = $this->configuraiton->getSessionExpiration()*60+ time();
        log_message('debug',__METHOD__.' - Session Epiration: '.$expire);
                
        $cookie = array(
            'name'   => 'mt_client',
            'value'  => $this->session->userdata('session_id'),
            //'expire' => $this->session->sess_expiration,
            'expire' => $expire,
            'path'   => '/',
            'secure' => False
        );

        $this->input->set_cookie($cookie);
	}
		
}